package study.lgf.action.config;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class WildcardMethodAction extends ActionSupport{
	private String method;
	private String message;
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String execute() throws Exception {
		return super.execute();
	}
	
	public String add() throws Exception {
		System.out.println("调用到Add");
		message = "成功调用WildcardMethodAction的add方法";
		return SUCCESS;
	}
	
	public String del() throws Exception {
		System.out.println("调用到Del");
		message = "成功调用WildcardMethodAction的del方法";
		return SUCCESS;
	}

	
	
	
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
}
